<?php echo $this->load->view($configs->clayout.'/admin/cabecalho'); ?>
<?php echo $this->load->view($configs->clayout.'/menu'); ?>
<div id="colTwo">
	<h2>Deletar Menus</h2>
	
	<?php echo form_open('admin/menussave'); ?>
			
	Deseja realmente deletar o menu abaixo? e todos os itens de menu relacionados a ele?<br>
	Titulo: 
	<?php echo $menu_del->mtitulo.br(); ?>
	Ordem:
	<?php echo $menu_del->mordem.br(); ?>
	<ul>
		<?php foreach($menusitens as $mi):?>
		<?php if($mi->idmenus==$menu_del->idmenus){ ?>
		<li>
			<?php echo $mi->mititulo; ?>
		</li>
		<?php } ?>
		<?php endforeach;?>
	</ul>
	<?php echo form_hidden('acao','deletar'); ?>
	<?php echo form_hidden('id', $menu_del->idmenus); ?>
	<?php echo form_hidden('titulo', $menu_del->mtitulo); ?>
	<?php echo form_hidden('ordem', $menu_del->mordem); ?>
	<?php echo form_submit('deletar','Deletar'); ?>
	<input type="button" value="Voltar" onClick="javascript:history.go(-1)" >  
	<?php echo form_close(); ?>
	<?php //echo $this->validation->error_string; ?>
</div>
<?php //echo $this->load->view($configs->clayout.'/menudir'); ?>
<?php echo $this->load->view($configs->clayout.'/rodape'); ?>